<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../js/vue.js"></script>
</head>

<body>
  <div id="demo">
    <h2 :title="school">悬浮显示现在得时间</h2>
    <h2>
      <p v-if="seen">现在你看到得{{name}}</p>
    </h2>
    <h2>
      <a :href="url" a="url">点击我去百度</a>
    </h2>
    <ol>
      <li v-for="todo in todos">{{todo.text}}</li>
    </ol>
  </div>
  <script>
    new Vue({
      el: '#demo',
      data: {
        school: '宏福科技园' + new Date().toLocaleString(),
        name: '张三',
        seen: true,
        url: 'https://www.4399.com/',
        todos: [
          { text: '学习张三' },
          { text: '学习李四' },
          { text: '学习王五' },
        ]
      }
    })
  </script>
</body>

</html>